package com.lxw.rmg.menu.service.impl;

import com.lxw.common.utils.PageUtils;
import com.lxw.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.lxw.rmg.menu.dao.MatterDao;
import com.lxw.rmg.menu.entity.MatterEntity;
import com.lxw.rmg.menu.service.MatterService;


@Service("matterService")
public class MatterServiceImpl extends ServiceImpl<MatterDao, MatterEntity> implements MatterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MatterEntity> page = this.page(
                new Query<MatterEntity>().getPage(params),
                new QueryWrapper<MatterEntity>()
        );

        return new PageUtils(page);
    }

}